<!DOCTYPE html>
<html>
<head>
<title>订单系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
<script src="bootstrap/js/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
<{include file='layouts/headNav.html'}>
<div class="container-fluid">
<div class="row-fluid">
<div class="span10">
<!--Body content-->
<ul class="nav nav-tabs">
<li><a href="<{spUrl c=$_controller a=search}>">订单列表</a></li>
<li class="active"><a href="<{spUrl c=$_controller a=create}>">新增订单</a></li>
</ul>
<form method="post" action="<{spUrl c=$_controller a=create}>">
<fieldset>
<table style="width:900px;">

<tr><td width="100px">商品名称:</td>
<td>
	<select name="orders[good_name]">
	<{foreach from=$allproduces item=producename}>
	<option value="<{$producename['name']}>"><{$producename['name']}></option>
	<{/foreach}>	
	</select>
</td></tr>
<tr><td width="100px">商品数量:</td>
<td>
	<select name="orders[good_num]">*购买数量
	<{foreach from=$_attributeFormset['good_num']['options'] item=goodnums}>*快递单上的物品名称
	<option value="<{$goodnums}>"><{$goodnums}></option>
	<{/foreach}>
	</select>
</td></tr>
<tr><td width="100px">代收货款:</td>
<td>
<input name="orders[daishoukuan]" type="text">
</td></tr>
<tr><td width="100px">收件姓名:</td>
<td>
<input name="orders[receiver_name]" type="text">*买家的姓名，必填
</td></tr>
<tr><td width="100px">联系电话:</td>
<td>
<input name="orders[tel]" type="text" value="<{time()}>">
<font color='red'>
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=6889412&amp;site=订单管理客服&amp;menu=yes"><img border="0" title="点击这里给我发消息" alt="点击这里给我发消息" src="http://wpa.qq.com/pa?p=2:1029978067:41"></a>
</span>订单提交成功后，可在订单列表中看到订单序号，将订单序号+手机号发送到QQ客服</font>

</td></tr>
<tr><td width="100px">收货地址:</td>
<td>
<input name="orders[address]" type="text">
</td></tr>
<tr><td width="100px">是否短信通知:</td>
<td>
<label class="checkbox"><input type="checkbox" name="orders[is_duanxin]" value="on" />开启<font color=red>【短信通知客服发货信息1元&nbsp;】</font></label>
</td></tr>
<tr><td width="100px">物&nbsp;&nbsp;&nbsp;&nbsp;流:</td>
<td>
<label class="radio inline rwidth"><input type="radio" name="orders[wuliu]" value="1">顺丰</label><label class="radio inline rwidth"><input type="radio" name="orders[wuliu]" value="2">宅急送</label><label class="radio inline rwidth"><input type="radio" name="orders[wuliu]" value="3">EMS</label>*请选择物流如顺风、EMS、宅急送
</td></tr>
<tr><td width="100px">备注:</td>
<td>
<textarea name="orders[comments]" rows="6" ></textarea>
</td></tr>

</table>

<button type="submit" class="btn btn-primary">新增</button>
<!--<button type="reset" class="btn">重填</button>-->
</fieldset>
</form>
</div>
</div>
</div>
</body>
</html>